package spring.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import spring.model.Person;

public interface PersonRepository extends JpaRepository<Person,Long>{
	List<Person> findByAddress(String name);
	Person findByNameAndAddress(String name,String address);
	Person withNameAndAddressQuery(@Param("name")String name,
			@Param("address")String address);
	List<Person> withNameAndAddressNamedQuery(String name,String address);
}
